<template>
  <div>
    <h1>{{ msg }}</h1>
    <div>我是父组件</div>
    <el-button type="primary">点我</el-button>
    <pre @click="handler">大江东去浪淘尽</pre>
        <button @click="handler1">点我传参</button>
    <Child info=" 我是你爹" :money="money" ></Child>
    <el-row>
    <el-button :icon="Search" circle />
    <el-button type="primary" :icon="Edit" circle />
    <el-button type="success" :icon="Check" circle />
    <el-button type="info" :icon="Message" circle />
    <el-button type="warning" :icon="Star" circle />
    <el-button type="danger" :icon="Delete" circle />
  </el-row>
  </div>
</template>



<script setup>
import { ref } from 'vue'
import Child from './Child.vue';
import {
  Check,
  Delete,
  Edit,
  Message,
  Search,
  Star,
} from '@element-plus/icons-vue'
defineProps({
  msg: String,
}) 

let  money = ref(1000)
</script>



<style scoped>
.read-the-docs {
  color: #888;
}
</style>
